<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"/>
	<title>demo</title>
	<meta name="keywords" content=""/>
	<meta name="description" content=""/>
	<meta name="viewport" content="width=device-width"/>
	<link rel="shortcut icon" href="img/touchicon.png"/>
	<link rel="stylesheet" href=""/>
	<style>
		
	</style>
</head>
<body>
	<div id="Sentence">
	</div>
	<input type="button" value="生成句子" onclick="newSentence()">
	<script>
	var sceneA,characterA,actionA,characterB,doSomething,thinkingA;
	sceneA = ['在迷仙阵里','在周军大帐','在玉泉山','在碧游宫','在西岐城','在姜子牙面前','在邓婵玉的婚礼上','在朝歌城','在摘星楼','在妲己面前'];
	characterA = ['杨戬','南宫大将军','姬发','王后青君','姜子牙','妲己','胡喜媚','黄飞虎','哪吒','黄天化'];
	actionA = ['拉着','踩着','抚摸着','拖着','骑着','嘲笑着','踢着','狞笑着对','看着','微笑着对'];
	characterB = ['纣王','殷郊','闻太师','姜子牙','邓婵玉','费仲','女娲','姜文焕','黄飞虎','杨戬'];
	doSomething = ['杀猪','狂扁费仲','裸奔','当着纣王的面啐妲己一口','和黄天化比吹牛皮','说杨戬和云霄是“木石前盟”','抢纣王点心','捡破烂','打CS','大骂迷仙阵中的MM','捉弄邓婵玉','骂玉鼎真人是猪头','说土行孙能打篮球','扯姜子牙胡子','踢南宫适一脚'];
	thinkingA = ['真是后生可畏啊','我的貂蝉在哪里','胆子真大','无量天尊，后果真血腥','真是可爱的孩子','真是没有素质','脑子有问题啊','有魄力啊，死都不怕...','虐待小动物','真是我们的好榜样'];

	var Sentence = document.getElementById('Sentence');
	function newSentence () {
		var s = '';
		s = '专属你的搞笑句子：' + s + sceneA[Math.floor(Math.random()*sceneA.length)] + characterA[Math.floor(Math.random()*characterA.length)] + actionA[Math.floor(Math.random()*actionA.length)] + characterB[Math.floor(Math.random()*characterB.length)] + doSomething[Math.floor(Math.random()*doSomething.length)] + ',' + thinkingA[Math.floor(Math.random()*thinkingA.length)] + '。';
		Sentence.innerHTML = s;
	}
	</script>
</body>
</html>
